package  dao;

import java.util.List;

import org.hibernate.Session;
import org.springframework.orm.hibernate3.HibernateTemplate;

public interface IDao<T> {
	public  T save(T obj);
	public  boolean update(T obj);
	public boolean delete(Class<? extends T> clazz,String rowid);
	public T queryById(Class<? extends T> clazz,String rowid);
	public List<T> queryBySql(Class<? extends T> clazz, String sql);
	public List<T> queryByHql(String hql);
	public List<T> queryByHql(String hql,Object value);
	public List<T> queryByHql(String hql,Object[] values);
	public HibernateTemplate getHibernateTemplate();
	public Session getSession();
	
}
